public class Square extends GeometricObject {
    private double a;


    public Square(double a) {
        this.a = a ;
    }

    public Square(double width, double height) {
        this.a = a;

    }

    /** Return width */
    public double getA() {
        return a;
    }

    /** Set a new width */
    public void setA(double a) {
        this.a = a;
    }

    /** Return height */

    @Override /** Return area */
    public double getArea() {
        return a * a;
    }

    @Override /** Return perimeter */
    public double getPerimeter() {
        return 4 * a;
    }
}

